﻿using AppCommerciaux.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace AppCommerciaux.converter
{
    public class tvaToStringValueConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return tvaToStringValueConverter.Convert(value as tva);
        }
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            //    return tiers_contactToStringValueConverter.Convert(value as string);
            return null;
        }
        public static string Convert(tva key)
        {
            if (null == key)
            {
                return "";
            }
            else
            {
                return key.ToString();
            }

        }
        //public static tiers_contact Convert(string key)
        //{
        //}    
    }
}
